package com.hehua.BridagePatternTwo;

public class Client {
    public static void main(String[] args) throws IllegalAccessException, InstantiationException {
        Image image;
        ImageImp imageImp;
        image = JPGimage.class.newInstance();
        imageImp = WindowsImp.class.newInstance();
        image.setImageImpl(imageImp);
        image.parseFile("小龙女");
    }
}
